package service;

import mapper.MemberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Member;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wyj on 2019/3/5.
 */
@Service("myservice")
public class MyService {
    @Resource(name = "mmapper")
    private MemberMapper mmapper;

    public List<Member> findall() {
        System.out.println("helloworld");
        return mmapper.findall();
    }
}

